package com.example.shiro.demo.service;

import com.example.shiro.demo.dao.UserRepository;
import com.example.shiro.demo.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {

    @Autowired
    private UserRepository userDao;

    public User findUserByAccount(String account) {
        return userDao.findByName(account);
    }

}
